HTML Quiz — Answers + Why

Each option shows whether it’s correct and a short reason.

Q1Which tag is used to define a table row in HTML?

Q2Which tag is used to create an unordered list in HTML?

Q3What is the purpose of the <mark> tag?

Q4How do you define a list item in an ordered or unordered list?

Q5Which attribute is used to open a link in a new tab?

Q6What is the purpose of the <header> tag?

Q7How do you create a text input field in an HTML form?

Q8Which tag is used for highlighting important text?

Q9Which of the following is a semantic HTML element?

Q10What does the <p> tag do in HTML?

Q11What is the function of the <details> tag?

Q12Which tag is used to display an image in HTML?

Q13What is the primary purpose of semantic HTML elements?

Q14Which of the following is not a semantic tag?

Q15Which tag is best for grouping related content in a webpage?

Q16What does the <h1> tag do in HTML?

Q17Which HTML element is used to define navigation links in a webpage?

Q18Which attribute is necessary to specify the URL of an image in HTML?

Q19Which tag is used to create an ordered list in HTML?

Q20Which tag is used to create a form in HTML?